import java.sql.*;

public class SelectUsers {
	public static void main(String[] args) throws Exception {
		Connection connection = DriverManager.getConnection("jdbc:pointbase:server://localhost/StaplerzDB", "pbpublic", "pbpublic");
		
		Statement selectStatement = connection.createStatement();
		String query = "SELECT name, address FROM users";
		ResultSet result = selectStatement.executeQuery(query);
		while(result.next()){
			System.out.println( result.getString("name") + "\t" + result.getString(2) );
		}
		
		connection.close();
	}
}
